Optimización por enjambre de partículas para la función de Rastrigin en dos dimensiones¶

2024-03-13 01:22:29,303 - pyswarms.single.global_best - INFO - Optimize for 100 iters with {'c1': 0.2, 'c2': 0.4, 'w': 0.9}
pyswarms.single.global_best: 100%|██████████|100/100, best_cost=1.99
2024-03-13 01:22:29,780 - pyswarms.single.global_best - INFO - Optimization finished | best cost: 1.9899472336992403, best pos: [-0.00467024 -0.00494588]
No description has been provided for this image
2024-03-13 01:34:50,618 - matplotlib.mathtext - INFO - Substituting symbol R from STIXGeneral
2024-03-13 01:34:50,938 - matplotlib.mathtext - INFO - Substituting symbol R from STIXGeneral
2024-03-13 01:34:51,504 - matplotlib.mathtext - INFO - Substituting symbol R from STIXGeneral
2024-03-13 01:34:52,465 - py.warnings - WARNING - <ipython-input-20-22a6ffa67423>:26: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.
  images.append(imageio.imread(f'generation_{group}.png'))

Your browser does not support the video tag.

Optimización por enjambre de partículas para la función de Rastrigin en tres dimensiones¶

2024-03-13 01:44:37,777 - pyswarms.single.global_best - INFO - Optimize for 250 iters with {'c1': 0.5, 'c2': 0.3, 'w': 0.9}
pyswarms.single.global_best: 100%|██████████|250/250, best_cost=6.08e-10
2024-03-13 01:44:38,583 - pyswarms.single.global_best - INFO - Optimization finished | best cost: 6.084359682745344e-10, best pos: [6.97924551e-07 1.57533229e-06 3.13147666e-07]

Graficaremos las curvas de nivel de la función con respecto X1,X3

2024-03-13 02:02:54,900 - matplotlib.mathtext - INFO - Substituting symbol R from STIXGeneral
2024-03-13 02:02:55,049 - matplotlib.mathtext - INFO - Substituting symbol R from STIXGeneral
2024-03-13 02:02:55,174 - matplotlib.mathtext - INFO - Substituting symbol R from STIXGeneral
2024-03-13 02:02:55,472 - py.warnings - WARNING - <ipython-input-31-aee97756c98c>:26: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.
  images.append(imageio.imread(f'generation_{group}.png'))

Your browser does not support the video tag.

Graficaremos las curvas de nivel de la función con respecto X2,X3

2024-03-13 02:16:09,136 - matplotlib.mathtext - INFO - Substituting symbol R from STIXGeneral
2024-03-13 02:16:09,344 - matplotlib.mathtext - INFO - Substituting symbol R from STIXGeneral
2024-03-13 02:16:09,570 - matplotlib.mathtext - INFO - Substituting symbol R from STIXGeneral
2024-03-13 02:16:09,862 - py.warnings - WARNING - <ipython-input-35-f2fc272ad1e0>:26: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.
  images.append(imageio.imread(f'generation_{group}.png'))

Your browser does not support the video tag.